<?php
/**
 * Short Description  
 *
 * Long Description 
 *
 * @category   
 * @package    
 * @subpackage 
 * @copyright 
 * @author     Sandeep Manne<sandeep.manne@costrategix.com>
 */

require_once "AppController.php";

class IndexController extends AppController
{
	public function init()
	{
		parent::init();
		$response = $this->getResponse();
        $response->insert('sidebar', $this->view->render('sidebar.phtml')); 
	}
	
	public function indexAction()
	{
		$this->view->pageTitle = "Zend Layout Example";

        $this->view->bodyTitle = '<h1>Hello World!</h1>';
        $this->view->bodyCopy = "<p>Lorem ipsum dolor etc.</p>";
        require_once 'Core/Module.php';
        var_dump(json_encode(array(6,8)));
        App::getModel("default", "settings")->addSetting("test","test123");
	}
	
	public function aboutAction()
	{

		$this->view->pageTitle = "Zend Layout Example";

        $this->view->bodyTitle = '<h1>About Hello World!</h1>';
        $this->view->bodyCopy = "<p>Lorem ipsum dolor etc.</p>";
	}
	
	public function postDispatch()
	{
		echo "After action";
	}
	
}